xen/arm: mm: Initialize page-tables earlier
authorJulien Grall <julien.grall@arm.com>
Fri, 5 Apr 2019 17:47:47 +0000 (18:47 +0100)
committerJulien Grall <julien.grall@arm.com>
Thu, 6 Jun 2019 17:44:33 +0000 (18:44 +0100)
commit3a5d341681af650825bbe3bee9be5d187da35080
tree882d535b3d285eebe1101319966757c82f0dc283
parentbb94262198f3770f17f46a529bb31866f78efca5
xen/arm: mm: Initialize page-tables earlier

Since commit f60658c6ae "xen/arm: Stop relocating Xen", the function
setup_page_tables() does not require any information from the FDT.

So the initialization of the page-tables can be done much earlier in the
boot process. The earliest setup_page_tables() can be called is after
traps have been initialized, so we can get backtrace if an error
occurred.

Moving the initialization of the page-tables also avoid the dance to map
the FDT again in the new set of page-tables.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Andrii Anisov <andrii_anisov@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/mm.c
xen/arch/arm/setup.c